#include <iostream>
#include <string>
using namespace std;

int main3()
{
	int Num[] = { 10,2,3,5,4,6,7,8,9,1 };
	int n = sizeof(Num) / sizeof(Num[0]);
	for (int i = 0; i < n - 1; i++)
	{
		for (int j = 0; j < n - i- 1; j++)
		{
			if (Num[j] > Num[j+1])
			{
				int temp = Num[j];
				Num[j] = Num[j+1];
				Num[j+1] = temp;
			}
		}
	}
	for (int i = 0; i < n; i++)
	{
		cout << Num[i] << " ";
	}

	return 0;

}
